package com.universal.schedule.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;


public class TabFragmentPagerAdapter extends FragmentPagerAdapter {

	//锟教筹拷FragmentPagerAdapter锟斤拷 ,锟斤拷锟皆讹拷锟斤拷墓锟斤拷锟斤拷锟?
	private List<Fragment> fragments;
	public TabFragmentPagerAdapter(FragmentManager fm,List<Fragment> fragments) {
		super(fm);
		this.fragments =fragments;
	}

	@Override
	public Fragment getItem(int position) {


		return fragments.get(position);

	}

	@Override
	public int getCount() {
		return fragments.size();
	}
}
